package com.ruoyi.btlfbreed.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 饲料管理对象 tb_feed_info
 * 
 * @author codeman
 * @date 2024-05-04
 */
public class TbFeedInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 饲料编码 */
    @Excel(name = "饲料编码")
    private String feedCode;

    /** 饲料名称 */
    @Excel(name = "饲料名称")
    private String feedName;

    /** 入库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rkDate;

    /** 过期日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expiryDate;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private BigDecimal stockQuantity;

    /** 饲养员ID */

    private Long userId;
    @Excel(name = "饲养员")
    private  String userName;

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }
    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 备品出入库信息 */
    private List<TbStockLog> tbStockLogList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFeedCode(String feedCode) 
    {
        this.feedCode = feedCode;
    }

    public String getFeedCode() 
    {
        return feedCode;
    }
    public void setFeedName(String feedName) 
    {
        this.feedName = feedName;
    }

    public String getFeedName() 
    {
        return feedName;
    }
    public void setRkDate(Date rkDate) 
    {
        this.rkDate = rkDate;
    }

    public Date getRkDate() 
    {
        return rkDate;
    }
    public void setExpiryDate(Date expiryDate) 
    {
        this.expiryDate = expiryDate;
    }

    public Date getExpiryDate() 
    {
        return expiryDate;
    }
    public void setStockQuantity(BigDecimal stockQuantity) 
    {
        this.stockQuantity = stockQuantity;
    }

    public BigDecimal getStockQuantity() 
    {
        return stockQuantity;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<TbStockLog> getTbStockLogList()
    {
        return tbStockLogList;
    }

    public void setTbStockLogList(List<TbStockLog> tbStockLogList)
    {
        this.tbStockLogList = tbStockLogList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("feedCode", getFeedCode())
            .append("feedName", getFeedName())
            .append("rkDate", getRkDate())
            .append("expiryDate", getExpiryDate())
            .append("stockQuantity", getStockQuantity())
            .append("remark", getRemark())
            .append("userId", getUserId())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("tbStockLogList", getTbStockLogList())
            .toString();
    }
}
